<?php
class Merchant_Service_AlertMessages
{	
	public function __construct(){
		
	}

	public function add($row){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->add($row);		
	}
	
	public function update($row,$value,$field){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->update($row,$value,$field);		
	}
	
	public  function updateByCond($row,$cond){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->updateByCond($row,$cond);
	}
	
	public function delete($value,$field){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->delete($value,$field);		
	}
	
	public function getByValue($value,$field){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->getByValue($value,$field);	
	}
	
	public function getColumnByValue($col,$value,$field){
		$Obj = new Merchant_Model_AlertMessages();
		return $Obj->getColumnByValue($col,$value,$field);	
	}
	
	/**
	 * 根据条件获取指定信息
	 */
	public function getRowByCond($cond,$type,$order,$mode){
		$Obj = new Merchant_Model_AlertMessages();
		$row = $Obj->getRowByCond($cond,$type,$order,$mode);
		return $row;		
	}	
	
}